FTP_PUT_FILE_MULTIPLE Function
Syntax
Arguments
- addressCharacter
The FTP address of the transmission.
- userCharacter
The user's identity.
- passwordCharacter
The user's password.
- source_filesCharacter
A list of relative filenames of files to be transferred.
- source_folderCharacter
The top level folder name where the source files are stored.
- destination_folderCharacter
The name of the folder on the target machine where the files should be transferred. If blank, the files are transferred to the root level specified by the FTP address.
- backgroundLogical
Default = .T.. If .T., the file transfer takes place in the background. The progress dialog box that is displayed is modeless. If .F., the file transfer takes place in the foreground. The progress dialog box that is displayed is modal.
Description
Upload a file to a FTP server. The FTP_PUT_FILE_MULTIPLE() function transfers multiple files via FTP. The relative folder structure of the source files is preserved on the target computer.
Example
For example, assume that you have a folder called " c:\mydata " which contains these files:
c:\mydata\page1.a5w c:\mydata\page2.a5w c:\mydata\images\image1.jpg c:\mydata\images\image2.jpg
Here is how you could transfer these files using FTP:
dim list as C list = <<%a% page1.a5w page2.a5w images\image1.jpg images\image2.jpg %a% FTP_PUT_FILE_MULTIPLE("your.ftpaddress.com", "your_username", "your_password", list, "c:\mydata", "mydata", .f.)
See Also